package com.lxq.live.pojo;

import org.springframework.data.annotation.LastModifiedDate;
import org.springframework.data.jpa.domain.support.AuditingEntityListener;

import javax.persistence.*;
import java.util.Date;


@EntityListeners(AuditingEntityListener.class)
@Entity
public class VideoRow {
    @Id
    private String uuid;
    private String title;
    private String description;
    private String authorId;
    private String duration;
    @Temporal(TemporalType.DATE)
    @LastModifiedDate
    private Date uploadDate;
    private String barrage;
    private int flowing;
    private int visit;
    private String videoUrl;
    private String filePath;
    private String cover;

    public void setDuration(String duration) {
        this.duration = duration;
    }

    public String getDuration() {
        return duration;
    }

    public String getUuid() {
        return uuid;
    }

    public void setUuid(String uuid) {
        this.uuid = uuid;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getAuthorId() {
        return authorId;
    }

    public void setAuthorId(String authorId) {
        this.authorId = authorId;
    }

    public Date getUploadDate() {
        return uploadDate;
    }

    public void setUploadDate(Date uploadDate) {
        this.uploadDate = uploadDate;
    }

    public void setBarrage(String barrage) {
        this.barrage = barrage;
    }

    public String getBarrage() {
        return barrage;
    }

    public int getFlowing() {
        return flowing;
    }

    public void setFlowing(int flowing) {
        this.flowing = flowing;
    }

    public int getVisit() {
        return visit;
    }

    public void setVisit(int visit) {
        this.visit = visit;
    }

    public String getVideoUrl() {
        return videoUrl;
    }

    public void setVideoUrl(String videoUrl) {
        this.videoUrl = videoUrl;
    }

    public void setFilePath(String filePath) {
        this.filePath = filePath;
    }

    public String getFilePath() {
        return filePath;
    }

    public void setCover(String cover) {
        this.cover = cover;
    }

    public String getCover() {
        return cover;
    }

    @Override
    public String toString() {
        return "VideoRow{" +
                "uuid='" + uuid + '\'' +
                ", title='" + title + '\'' +
                ", description='" + description + '\'' +
                ", authorId='" + authorId + '\'' +
                ", duration='" + duration + '\'' +
                ", uploadDate=" + uploadDate +
                ", barrage='" + barrage + '\'' +
                ", flowing=" + flowing +
                ", visit=" + visit +
                ", videoUrl='" + videoUrl + '\'' +
                ", filePath='" + filePath + '\'' +
                ", cover='" + cover + '\'' +
                '}';
    }
}
